package com.svs.common.config;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ConfigFile {
	

	public static String SPRING_PROFILES_ACTIVE ;
	public static final String APPLICATION = "application-{active}.yml";
	
	@Value("${spring.profiles.active}")
	public  void setAPP_ID(String active) {
		if(StringUtils.isNotBlank(active)){
			SPRING_PROFILES_ACTIVE = APPLICATION.replace("{active}", active);	
		}
	}
	
}
